<template>
  <div id="goodslist">
    <van-col span="24" class="centenr-box2 ">
      <van-row style=" border-bottom: 1px solid rgba(0, 0, 0, 0.1);" v-for="(item, index) in GetShoppingCartList" :key="index">
        <van-col span="6">
          <van-col span="24">
            <img :src="item.picUrl" alt="" />
          </van-col>
        </van-col>
        <van-col span="18" class="centenr-box2-p">
          <p class="van-ellipsis">
            {{ item.goodsName }}<span class="van-ellipsis-span">×{{ item.number }}</span>
          </p>
          <p>
            <span>{{ item.specifications.join('——') }}</span>
          </p>
          <p>￥{{ item.price }}</p>
        </van-col>
      </van-row>
    </van-col>
  </div>
</template>
<script>
export default {
  name,
  props: ['GetShoppingCartList'],
  data() {
    return {}
  },
  mounted() {
    console.log(this.GetShoppingCartList)
  },
  methods: {}
}
</script>
<style lang="less" scoped>
.centenr-box2 {
  border-radius: 0.15rem;
  .van-row:last-child {
    border-radius: 0.15rem;
  }
  .van-row {
    background-color: #fff;
    height: 1rem;
    position: relative;
    .checkbox {
      line-height: 0.9rem;
      height: 1rem;
      input {
        width: 60px;
        text-align: center;
        margin: 0 auto;
      }
    }

    .centenr-box2-p {
      padding: 0.5rem;
      p {
        margin: 0;
        .van-ellipsis-span {
          position: absolute;
          right: 10px;
          top: 0.1rem;
        }
      }
      p:nth-child(1) {
        font-size: 0.14rem;
      }
      p:nth-child(2) {
        font-size: 0.12rem;
        opacity: 0.7;
        margin: 5px 0px 10px 0px;
      }
      p:nth-child(3) {
        font-size: 0.16rem;
        color: chocolate;
      }
      .theme {
        position: absolute;
        right: 0.15rem;
        top: 0.6rem;
      }
    }
    .van-col {
      padding: 0.1rem;
      .van-col {
        background-color: rgb(247, 245, 245);
        img {
          width: 100%;
        }
      }
    }
  }
}
.goods {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  .van-card__title {
    font-size: 0.15rem;
    margin: 0.05rem 0rem;
  }
}

.delete-button {
  height: 100%;
}
</style>
